package day3


object person{
  var name = "yangguo"

}

object SingletonDemo {
  def main(args: Array[String]): Unit = {

    val name1 = person.name
    println(s"name:$name1")
    person.name = "3434"
    println(s"name:$name1")
    println(s"name:${person.name}")
  }
}
